import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
import { BaseEntity } from './BaseEntity'
import { DateEntity } from './DateEntity'

@Entity({ name: 't_category' })
export class Category extends BaseEntity {
  @Column({
    type: 'text',
    comment: '分类名称'
  })
  categoryName: string

  @Column({
    type: 'integer',
    comment: '父id'
  })
  parentId: string

  @Column(() => DateEntity)
  '': DateEntity
}
